<?php

$val = new StdClass();
$val->um = 1;
$val->dois = 2;
$val->tres = 3;
$val->quatro = 4;
$val->cinco = 5;
$val->seis = 6;
$val->sete = 7;

$tre = new StdClass();

$tre = $val;

$val->dois = 10;

echo "<pre>";
print_r( $val );
print_r( $tre );


?>